package com.store.model;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
public class ExpressinfoModel extends PageModel {

    public Map<String,String> excelHead(){
        Map<String, String> excelHead = new HashMap<>();
        excelHead.put("esid","主键");
        excelHead.put("content","内容");
        excelHead.put("errorcode","错误码");
        excelHead.put("orderno","订单号");
        excelHead.put("createtime","创建时间");
        excelHead.put("apitype","");
        return excelHead;
    }

    @ApiModelProperty(value = "主键", required = true)
    private String esid;
    @ApiModelProperty(value = "内容", required = true)
    private String content;
    @ApiModelProperty(value = "错误码", required = true)
    private Integer errorcode;
    @ApiModelProperty(value = "订单号", required = true)
    private String orderno;
    @ApiModelProperty(value = "创建时间", required = true)
    private String createtime;

    @ApiModelProperty(value = "创建时间", required = true)
    private String createday;

    @ApiModelProperty(value = "", required = true)
    private String apitype;
    @ApiModelProperty(value = "", required = true)
    private String sforderid;

    @ApiModelProperty(value = "", required = true)
    private String shopId;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}